﻿@model XPressify.Models.AlbumEditPrivacyModel
@using XPressify.Data.Helpers

@{
    ViewBag.Title = "Album info edit";
}

<br />
<div>@Html.ActionLink("Edit photos", "AlbumFileEdit", new { id = Model.Id }, new { style = "color:Blue"})</div>
 <br />
@using (Html.BeginForm()) {
    <fieldset>
        <legend style="font-size:x-large;color:#222">Album</legend>
    @Html.ValidationSummary(true)
        <legend style="font-size:x-large;color:#222">@Model.Name</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.PrivacyType) :
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.PrivacyType, new List<SelectListItem> { new SelectListItem { Text = "Everyone", Value = ObjectPrivacy.Everyone.ToString() }, new SelectListItem { Text = "FriendsOfFriends", Value = ObjectPrivacy.FriendsOfFriends.ToString() }, new SelectListItem { Text = "FriendsOnly", Value = ObjectPrivacy.FriendsOnly.ToString() }, new SelectListItem { Text = "Private", Value = ObjectPrivacy.Private.ToString() } })
            @Html.ValidationMessageFor(model => model.PrivacyType)
        </div>
    </fieldset>
}

